package com.dandelion.business.entity.vo.user.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

@Data
@ApiModel(value = "用户绑定角色请求实体")
public class BindRoleReqVO {

    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "用户id")
    private Long uid;

    @ApiModelProperty(value = "角色id集合")
    @NotEmpty(message = "资源id集合不能为空")
    private Set<Long> rids;

}
